-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): remove ngsemantic ascode modal and ng-semantic run workflow modal #6212
Merged
+318
−355
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a23018a
feat(ui): remove sui ascode modal
sguiheux c6d0253
fix(ui): change bollean variable style
sguiheux 1f953f8
feat: remove ngsemantic from job variable modal
sguiheux c3d56ff
feat: remove ng-semantic from run workflow param
sguiheux 5c2995e
fix(ui): remove translate
sguiheux File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
51 changes: 24 additions & 27 deletions
51
ui/src/app/shared/ascode/save-modal/ascode.save-modal.html
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 |
---|---|---|
@@ -1,28 +1,25 @@ | ||
<ng-template let-context let-modal="modal" #updateAsCodeModal> | ||
<div class="header">{{ 'ascode_modal_title' | translate }}</div> | ||
<div class="content"> | ||
<div *ngIf="repositoryFullname" class="ui blue message"> | ||
A pull request will be created to the repository {{repositoryFullname}}.<br> | ||
Notice that you can't push on the default branch of your git repository. | ||
</div> | ||
<app-ascode-save-form [project]="project" [workflow]="workflow" [operation]="asCodeOperation" | ||
(paramChange)="onParamChange($event)"> | ||
</app-ascode-save-form> | ||
</div> | ||
<div class="actions"> | ||
<ng-container *ngIf="!displayCloseButton"> | ||
<div class="ui blue button" [class.loading]="loading" [class.disabled]="loading" (click)="close()"> | ||
{{'common_cancel' | translate}} | ||
</div> | ||
<div class="ui green button" [class.loading]="loading" | ||
[class.disabled]="loading || !canSave" | ||
<div class="content"> | ||
<nz-alert *ngIf="repositoryFullname" nzType="info" [nzMessage]="infoPr"></nz-alert> | ||
<ng-template #infoPr> | ||
A pull request will be created to the repository {{repositoryFullname}}.<br> | ||
Notice that you can't push on the default branch of your git repository. | ||
</ng-template> | ||
<app-ascode-save-form [project]="project" [workflow]="workflow" [operation]="asCodeOperation" (paramChange)="onParamChange($event)"></app-ascode-save-form> | ||
</div> | ||
<div *nzModalFooter> | ||
<ng-container *ngIf="!displayCloseButton"> | ||
<button nz-button [nzLoading]="loading" [disabled]="loading" (click)="close()"> | ||
Cancel | ||
</button> | ||
<button nz-button nzType="primary" [nzLoading]="loading" | ||
[disabled]="loading || !canSave" | ||
(click)="save()"> | ||
{{'btn_save' | translate}}</div> | ||
</ng-container> | ||
<ng-container *ngIf="displayCloseButton"> | ||
<div class="ui blue button" (click)="close()"> | ||
{{'common_close' | translate}} | ||
</div> | ||
</ng-container> | ||
</div> | ||
</ng-template> | ||
Save | ||
</button> | ||
</ng-container> | ||
<ng-container *ngIf="displayCloseButton"> | ||
<button nz-button (click)="close()"> | ||
Close | ||
</button> | ||
</ng-container> | ||
</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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To fix in a following PR, check if err not found or return the err directly.