Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Change color of settings key and remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
ppacher committed Feb 2, 2022
1 parent 483aced commit ec0842f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,44 +1,5 @@
<div class="relative flex flex-row flex-wrap items-center px-5 py-5 bg-gray-200 rounded" [class.pr-8]="lockDefaults">
<!--
<div>
<h3 for="setting">
<span class="release-level rejected">
<fa-icon icon="exclamation"></fa-icon>
</span>
<span class="release-level beta" *ngIf="setting?.ReleaseLevel === releaseLevel.Beta">Beta</span>
<span class="release-level experimental"
*ngIf="setting?.ReleaseLevel === releaseLevel.Experimental">Experimental</span>
<span class="expertise" *ngIf="setting?.ExpertiseLevel === expertise.expert">Advanced</span>
<span class="expertise" *ngIf="setting?.ExpertiseLevel === expertise.developer">Developer</span>
<span class="expertise" *appExpertiseLevel="'developer'">{{setting?.Key}}</span>
<span [innerHTML]="setting?.Name | safe:'html'"></span>
</h3>
</div>
<markdown class="description" emoji [data]="setting?.Description"></markdown>
<span class="notice" *ngIf="!!setting?.RequiresRestart">
<fa-icon icon="exclamation-triangle"></fa-icon>
Changes to this setting require a restart of Portmaster to take effect.
</span>
<div class="help-text" *ngIf="!!setting?.Help">
<span class="toggle" (click)="toggleHelp()">
<fa-icon icon="question-circle"></fa-icon>
{{ !showHelp ? 'Show Help' : 'Hide Help'}}
</span>
<markdown *ngIf="showHelp" [@fadeIn] [@fadeOut] class="help-text" emoji [data]="setting?.Help"></markdown>
</div>
-->


<div class="flex flex-col flex-grow">

<div class="flex flex-row items-center justify-start space-x-2 w-fit">
<h3 [innerHTML]="setting?.Name | safe:'html'" class="mb-0 name"></h3>
<app-tipup *ngIf="setting?.Description" [key]="setting!.Key" [text]="setting?.Description"
Expand All @@ -53,7 +14,7 @@ <h3 [innerHTML]="setting?.Name | safe:'html'" class="mb-0 name"></h3>
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>

<span class="inline-block px-1.5 py-0.5 bg-gray-400 rounded text-xxs text-blue"
<span class="inline-block px-1.5 py-0.5 bg-gray-400 rounded text-xxs text-secondary"
*appExpertiseLevel="'developer'">{{setting?.Key}}</span>
<span class="inline-block px-1.5 py-0.5 text-gray-100 bg-yellow-300 rounded text-xxs"
*ngIf="setting?.ReleaseLevel === releaseLevel.Beta">Beta</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<!--
<app-multi-switch [ngModel]="value" (ngModelChange)="onValueChange($event)">
<app-switch-item [id]="false" group="0" borderColorActive="var(--info-red)" [selected]="!value">Off
</app-switch-item>
<app-switch-item [id]="true" group="1" [selected]="value">On</app-switch-item>
</app-multi-switch>
-->
<label>
<input type="checkbox" class="block w-0 h-0 opacity-0" [ngModel]="value" (ngModelChange)="onValueChange($event)">
<span class="slider">
Expand Down

0 comments on commit ec0842f

Please sign in to comment.