- Notifications
You must be signed in to change notification settings - Fork 720
Enable deletion of model and script files #1023
Enable deletion of model and script files #1023
Conversation
| <svg class="ibm-icon" aria-hidden="true"> | ||
| <use xlink:href="#icon-warn_32"></use> | ||
| </svg> | ||
| <h1 [innerHTML]="headerMessage"></h1> |
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.
this should be {{}}
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.
tick
| <div class="item"><b>{{fileType}}</b></div> | ||
| <div class="item"><i>{{fileName}}</i></div> | ||
| </section> | ||
| <p [innerHTML]="deleteMessage"></p> |
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.
this should also be {{}}
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.
tick
| </section> | ||
| </section> | ||
| <footer> | ||
| <button type="button" class="secondary" (click)="activeModal.close(false)">Cancel</button> |
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.
you could use activeModal.dismiss() here rather than close
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.
tick
| display: flex; | ||
| flex-direction: column; | ||
| align-content: flex-start; | ||
| margin-left: 2rem; |
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.
this should use a variable i think 2rem (32px) is $space-large
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.
sure - the $space items appear to all be in px sizing, but change made
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.
they are, they need updating
| border-left: solid $first-highlight; | ||
| | ||
| .item{ | ||
| margin-left: 1rem; |
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.
This should use a variable too think 1rem (16px) is $space-medium
| beforeEach(() => { | ||
| TestBed.configureTestingModule({ | ||
| declarations: [DeleteComponent], | ||
| providers: [NgbActiveModal] |
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.
should NgbActiveModal be mocked or do you use it in the tests?
| </svg> | ||
| </button> | ||
| </div> | ||
| <div *ngIf="deletableFile" style="flex-shrink:1;align-self:center; margin-left: auto"> |
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.
the style bits should be in the scss file
cazfletch left a comment
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.
Made some comments of things for you to look at
* Updates for work * Adding Installing Index to ToC * Removing Fabric Composer name * Removing Fabric composer name * Moving images for REST API doc * Fabric Composer Name removal * Fabric Composer name removal * Other name changes (Stack Overflow, GitHub, Rocket.Chat, JavaScript) * wording updates and bug splats * ToC Updates * HLv1 docs updates, couple more bug splats. * Last edit for HLv1 * Whoops, bug splat * Another bug splat... * Quick fixes prereqs navbar * intro diagram fix and bug fixes * Fixes and updates * Rollback optional script for v1.0 * QoL changes and rollback changes - Quickstart * Link fixes * Atom links fix, formatting fix * Odd formatting fix. * Name change and codeblock fix * More odd formatting fixes * Ubuntu root user doc fix + draft of bnd doc changes * update for CLI define + deploy BNA * last bnd update * Events and bug fixes * Last event thing * Updates for #803 and hyperledger-archives#822 * removing unnecessary stuff * Undeploy support #673 * Clarifications on undeploy
…into delete-files
Code delivery for #386, provides the ability for a user to delete model and/or script files
Delivers:
Design of the fix
Follows user flow of named user story.
Modal confirmation enables deletion of named file within business network.
Validation of all business network files enabled and now all files must validate before enabling deploy
Validation of the fix
manual testing
Automated Tests
Automated tests established for new additions driving expected component actions.