-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1cba84
commit a3026fe
Showing
7 changed files
with
149 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,4 +79,4 @@ ng-nested-form { | |
*[hidden] { | ||
display: none !important; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<markdown class="docs" [content]="this.currentDoc.content"></markdown> | ||
<div class="nestedForm"> | ||
<label> | ||
<span class="infoButton infoIcon" (click)="presetsInfoClick()"> | ||
</span> | ||
Community Presets | ||
</label> | ||
<ng-select placeholder="Configuration presets" allowEmpty="true" emitOnly="false" ngModel (ngModelChange)="setPreset($event)"> | ||
<ng-option text-scroll *ngFor="let value of configPresets | keys"> | ||
{{value}} | ||
</ng-option> | ||
</ng-select> | ||
<ng-nested-form (parentFormChange)="userForm = $event" [nestedGroup]="nestedGroup"></ng-nested-form> | ||
</div> | ||
<div class="menu" drag-scroll> | ||
<ng-container *ngIf="configurationIndex === -1; else moreOptions"> | ||
<div (click)="saveForm()" style="margin-right: auto;">{{lang.buttons.save}}</div> | ||
<div *ngIf="(parsersService.getDeletedConfigurations() | async).length !== 0" (click)="restoreForm()">{{lang.buttons.undoDelete}}</div> | ||
<div (click)="openFAQ()">{{lang.buttons.faq}}</div> | ||
</ng-container> | ||
<ng-template #moreOptions> | ||
<div (click)="updateForm()">{{lang.buttons.save}}</div> | ||
<div (click)="saveForm()">{{lang.buttons.copy}}</div> | ||
<div (click)="testForm()">{{lang.buttons.testParser}}</div> | ||
<div class="dangerousButton" (click)="deleteForm()" style="margin-right: auto;">{{lang.buttons.delete}}</div> | ||
<div *ngIf="(parsersService.getDeletedConfigurations() | async).length !== 0" (click)="restoreForm()">{{lang.buttons.undoDelete}}</div> | ||
<div *ngIf="isUnsaved" (click)="undoChanges()">{{lang.buttons.undoChanges}}</div> | ||
<div (click)="toClipboard()" [title]="lang.buttons.toClipboard"> | ||
<svg copy-icon [title]="lang.buttons.toClipboard"></svg> | ||
</div> | ||
<div [class.disabled]="configurationIndex === 0" (click)="moveUp()" [title]="lang.buttons.moveUp"> | ||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 300 300" height="1em"> | ||
<path d="M150 10 l 140 150 h -80 v 120 h -120 v -120 h -80 z" stroke="black" stroke-width="3" /> | ||
</svg> | ||
</div> | ||
<div [class.disabled]="configurationIndex + 1 === userConfigurations.length" (click)="moveDown()" [title]="lang.buttons.moveDown"> | ||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 300 300" height="1em"> | ||
<path d="M150 290 l 140 -150 h -80 v -120 h -120 v 120 h -80 z" stroke="black" stroke-width="3" /> | ||
</svg> | ||
</div> | ||
<div (click)="openFAQ()">{{lang.buttons.faq}}</div> | ||
</ng-template> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters