Compare commits
3 Commits
59e9c77e49
...
a59f96cdad
Author | SHA1 | Date |
---|---|---|
argirok | a59f96cdad | |
argirok | f03273f40c | |
argirok | 4a4d02d872 |
|
@ -161,8 +161,8 @@ export class EditCommunityComponent {
|
|||
communityId: this.fb.control(this.community.communityId),
|
||||
name: this.fb.control(this.community.title, Validators.required),
|
||||
shortName: this.fb.control(this.community.shortTitle, Validators.required),
|
||||
displayName: this.fb.control(this.community.title, Validators.required),
|
||||
displayShortName: this.fb.control(this.community.shortTitle, Validators.required),
|
||||
displayName: this.fb.control(this.community.displayTitle, Validators.required),
|
||||
displayShortName: this.fb.control(this.community.displayShortTitle, Validators.required),
|
||||
description: this.fb.control(this.community.description),
|
||||
status: this.fb.control(this.community.status),
|
||||
claim: this.fb.control(this.community.claim),
|
||||
|
|
|
@ -35,6 +35,7 @@ import {UntypedFormBuilder} from "@angular/forms";
|
|||
<fs-modal #filtersModal (okEmitter)="saveCriteria()" (cancelEmitter)="criteria.reset(); depositReset();"
|
||||
[okButtonDisabled]="(criteria && criteria.disabled && !depositInfoChanged)">
|
||||
<div class="uk-container uk-container-large">
|
||||
<div *ngIf="dataProvider" class="uk-text-large">{{dataProvider.officialname}}</div>
|
||||
<div class="uk-flex uk-flex-center">
|
||||
<div>
|
||||
<mat-slide-toggle [checked]="enabled" (change)="enabled = !enabled; depositInfoChanged = true;"></mat-slide-toggle>
|
||||
|
@ -45,7 +46,7 @@ import {UntypedFormBuilder} from "@angular/forms";
|
|||
<label class="uk-margin-medium-top uk-margin-small-left ">Suggest for deposit</label>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="enabled" class="uk-hr">
|
||||
<div class="uk-hr" [class.uk-hidden]="!enabled">
|
||||
<div class="uk-text-center uk-text-bold uk-text-large uk-margin-top ">Content filters</div>
|
||||
<criteria #criteria *ngIf="dataProvider" [height]="'-1'"
|
||||
[selectionCriteria]="dataProvider.selectioncriteria">
|
||||
|
@ -153,6 +154,7 @@ export class ManageContentProvidersComponent implements OnInit {
|
|||
this.dataProvider.deposit = this.deposit;
|
||||
this.dataProvider.message = this.message;
|
||||
this.dataProvider.enabled = this.enabled;
|
||||
console.log(this.dataProvider)
|
||||
this.manageCommunityContentProvidersService.saveContentProvider(this.properties, this.dataProvider).subscribe(() => {
|
||||
this.criteria.reset();
|
||||
this.removeContentProvidersComponent.getCommunityContentProviders();
|
||||
|
@ -164,6 +166,7 @@ export class ManageContentProvidersComponent implements OnInit {
|
|||
});
|
||||
}
|
||||
this.removeContentProvidersComponent.loading = true;
|
||||
console.log()
|
||||
this.criteria.save(callback);
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<a (click)="removeCommunity(item, true)"
|
||||
class="uk-button uk-button-link uk-flex uk-flex-middle">
|
||||
<icon name="remove" [flex]="true"></icon>
|
||||
<span class="uk-margin-small-left">Remove as master</span>
|
||||
<span class="uk-margin-small-left">Remove as Main</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
<a (click)="removeFromMasterCommunity(item)"
|
||||
class="uk-button uk-button-link uk-flex uk-flex-middle">
|
||||
<icon name="remove" [flex]="true"></icon>
|
||||
<span class="uk-margin-small-left">Remove as master</span>
|
||||
<span class="uk-margin-small-left">Remove as Main</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -70,7 +70,7 @@
|
|||
<a (click)="addAsMasterCommunity(item)"
|
||||
class="uk-button uk-button-link uk-flex uk-flex-middle">
|
||||
<icon name="add" [flex]="true"></icon>
|
||||
<span class="uk-margin-small-left">Add as master</span>
|
||||
<span class="uk-margin-small-left">Add as Main</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue