-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: scenario trends sharing (#367)
- Loading branch information
Showing
25 changed files
with
530 additions
and
50 deletions.
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
src/app/item-detail/share/delete-share-link/delete-share-link.component.ts
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,5 @@ | ||
export interface ScenarioShareToken { | ||
id: string | ||
toke: string | ||
note: string | ||
} |
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
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
3 changes: 3 additions & 0 deletions
3
src/app/scenario/share-token/delete-share-token/delete-scenario-share-token.component.css
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,3 @@ | ||
.revoke { | ||
margin-left: 10px; | ||
} |
33 changes: 33 additions & 0 deletions
33
src/app/scenario/share-token/delete-share-token/delete-scenario-share-token.component.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<ng-template #content let-modal> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="modal-basic-title">Delete Share Link</h5> | ||
<button type="button" style="outline: none;" class="close" aria-label="Close" (click)="modal.dismiss('Cross click')"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<form [formGroup]="deleteScenarioShareTokenForm" (ngSubmit)="onSubmit()"> | ||
<div class="modal-body"> | ||
<div class="alert alert-danger" role="alert"> | ||
<i class="fas fa-info-circle"> </i> | ||
By deleting this token you will immediately revoke its access. | ||
</div> | ||
<div class="form-group mb-3"> | ||
<label for="deleteCheck">Please enter 5 random characters to confirm this action:</label> | ||
<input type="deleteCheck" id="deleteCheck" class="form-control" formControlName="deleteCheck" aria-label="Default" | ||
aria-describedby="inputGroup-sizing-default"> | ||
<div class="form-control-feedback" *ngIf="deleteCheck.errors && (deleteCheck.dirty || deleteCheck.touched)"> | ||
<p class="form-validation-error" *ngIf="deleteCheck.errors.minlength">Please enter at least 5 characters...</p> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<div class="modal-footer"> | ||
<button type="submit" class="btn btn-danger">Delete</button> | ||
</div> | ||
</form> | ||
|
||
</ng-template> | ||
|
||
<button class="btn btn-sm jtl-btn-light jtl-no-glow revoke" (click)="open(content)"> | ||
Delete | ||
</button> |
Oops, something went wrong.