1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-27 02:09:16 +02:00

Experimental warning on UI #569

This commit is contained in:
Patrik J. Braun 2023-01-04 23:13:20 +01:00
parent a902cdcdfc
commit 5db0ea7acd
2 changed files with 7 additions and 1 deletions

View File

@ -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">

View File

@ -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;
}
}