mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Experimental warning on UI #569
This commit is contained in:
parent
a902cdcdfc
commit
5db0ea7acd
@ -286,7 +286,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<small class="form-text text-muted" *ngIf="description">{{description}}
|
||||
<small class="form-text text-muted" *ngIf="description">
|
||||
<ng-container *ngIf="experimental">
|
||||
<span class="oi oi-warning"></span>[Experimental]
|
||||
</ng-container>
|
||||
{{description}}
|
||||
<span *ngIf="type==='array' && (state.arrayType === 'string' || isNumberArray)" i18n>';' separated list.</span>
|
||||
<a *ngIf="state.tags?.githubIssue"
|
||||
[href]="'https://github.com/bpatrik/pigallery2/issues/'+state.tags?.githubIssue">
|
||||
|
@ -52,6 +52,7 @@ export class SettingsEntryComponent
|
||||
name: string;
|
||||
required: boolean;
|
||||
dockerWarning: boolean;
|
||||
experimental: boolean;
|
||||
placeholder: string;
|
||||
allowSpaces = false;
|
||||
description: string;
|
||||
@ -252,6 +253,7 @@ export class SettingsEntryComponent
|
||||
this.name = this.name || this.state.tags.name;
|
||||
this.allowSpaces = this.allowSpaces || this.state.tags.uiAllowSpaces;
|
||||
this.required = this.required || !this.state.tags.uiOptional;
|
||||
this.experimental = this.state.tags.experimental;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user