Merge ~deadlight/maas:remove-repo into maas:master

Proposed by Karl Williams
Status: Merged
Approved by: Blake Rouse
Approved revision: eb563d1987b41b2900b16db26e6daee75cd0d809
Merge reported by: MAAS Lander
Merged at revision: not available
Proposed branch: ~deadlight/maas:remove-repo
Merge into: maas:master
Diff against target: 49 lines (+11/-9)
1 file modified
src/maasserver/static/partials/settings.html (+11/-9)
Reviewer Review Type Date Requested Status
Blake Rouse (community) Approve
Anthony Dillon Approve
MAAS Lander Approve
Review via email: mp+337938@code.launchpad.net

Commit message

Fixes LP #1749867 - Allow removal of custom repositories

Make the confirmation buttons appear on /settings/repositories when the user clicks "remove"

Description of the change

Make the confirmation buttons appear on /settings/repositories when the user clicks "remove"

QA:
 - Go to /settings/repositories
 - Add a repo other than the default ones
 - Click the "remove" button on this new row
 - See that there is a confirmation form
 - Click remove
 - See that the repo is removed

To post a comment you must log in.
Revision history for this message
MAAS Lander (maas-lander) wrote :

UNIT TESTS
-b remove-repo lp:~deadlight/maas/+git/maas into -b master lp:~maas-committers/maas

STATUS: SUCCESS
COMMIT: eb563d1987b41b2900b16db26e6daee75cd0d809

review: Approve
Revision history for this message
Anthony Dillon (ya-bo-ng) wrote :
Revision history for this message
Anthony Dillon (ya-bo-ng) wrote :

Code look good to me and QA works.

review: Approve
Revision history for this message
Anthony Dillon (ya-bo-ng) wrote :

Karl please update the description to the following format:

LP: #xxxxx - <short description>

<long description of needed>

Revision history for this message
Blake Rouse (blake-rouse) wrote :

Looks good.

review: Approve
Revision history for this message
Karl Williams (deadlight) wrote :

> Karl please update the description to the following format:
>
> LP: #xxxxx - <short description>
>
> <long description of needed>

I updated the commit message.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/src/maasserver/static/partials/settings.html b/src/maasserver/static/partials/settings.html
index aef8ea3..1e6f7e3 100644
--- a/src/maasserver/static/partials/settings.html
+++ b/src/maasserver/static/partials/settings.html
@@ -143,6 +143,7 @@
143 <h2 data-ng-click="snippetExitRemove(snippet)" class="u-float--left">Removing {$ snippet.name $}</h2>143 <h2 data-ng-click="snippetExitRemove(snippet)" class="u-float--left">Removing {$ snippet.name $}</h2>
144 <button data-ng-click="snippetExitRemove(snippet)" class="p-icon--close u-float--right"></button>144 <button data-ng-click="snippetExitRemove(snippet)" class="p-icon--close u-float--right"></button>
145 </div>145 </div>
146 <hr />
146 <div class="row u-no-margin--top u-equal-height">147 <div class="row u-no-margin--top u-equal-height">
147 <div class="col-6 u-vertically-center">148 <div class="col-6 u-vertically-center">
148 <p><i class="p-icon--warning">Warning:</i> Are you sure you want to remove this snippet?</p>149 <p><i class="p-icon--warning">Warning:</i> Are you sure you want to remove this snippet?</p>
@@ -374,8 +375,8 @@
374 data-ng-click="toggleMenu(); repositoryEnterRemove(repository)">Remove</button>375 data-ng-click="toggleMenu(); repositoryEnterRemove(repository)">Remove</button>
375 </div>376 </div>
376 </td>377 </td>
377 <td class="is-active p-table-expanding__panel col-12" col-span="5" data-ng-if="editRepository === repository">378 <td class="is-active p-table-expanding__panel col-12" col-span="5" data-ng-if="editRepository === repository || deleteRepository === repository">
378 <maas-obj-form obj="editRepository" manager="packageRepositoriesManager" manager-method="updateItem"379 <maas-obj-form obj="editRepository" manager="packageRepositoriesManager" manager-method="updateItem" data-ng-if="editRepository === repository"
379 table-form="true" save-on-blur="false" after-save="repositoryExitEdit">380 table-form="true" save-on-blur="false" after-save="repositoryExitEdit">
380 <div class="row u-equal-height">381 <div class="row u-equal-height">
381 <div class="col-3 u-vertically-center">382 <div class="col-3 u-vertically-center">
@@ -460,17 +461,18 @@
460 </div>461 </div>
461 </maas-obj-form>462 </maas-obj-form>
462 <div class="table__dropdown" data-ng-if="deleteRepository === repository">463 <div class="table__dropdown" data-ng-if="deleteRepository === repository">
463 <div class="table__dropdown-title">464 <div class="row u-hide u-show--small">
464 <h2 data-ng-click="repositoryExitRemove()" class="u-float--left">Removing {$ repository.name $}</h2>465 <h2 data-ng-click="repositoryExitRemove()" class="u-float--left">Removing {$ repository.name $}</h2>
465 <button data-ng-click="repositoryExitRemove()" class="p-icon--close u-float--right"></button>466 <button data-ng-click="repositoryExitRemove()" class="p-icon--close u-float--right"></button>
466 </div>467 </div>
467 <div class="is-active">468 <hr />
468 <div class=" u-float--left">469 <div class="row u-no-margin--top u-equal-height">
469 <p><span class="p-icon--warning"></span> Are you sure you want to remove this repository?</p>470 <div class="col-6 u-vertically-center">
471 <p><span class="p-icon--warning"></span> Are you sure you want to remove this repository?</p>
470 </div>472 </div>
471 <div class=" u-float--right">473 <div class="col-6 u-align--right">
472 <button class="button--base" type="button" data-ng-click="repositoryExitRemove()">Cancel</button>474 <button class="p-button--base" type="button" data-ng-click="repositoryExitRemove()">Cancel</button>
473 <button class="button--destructive" data-ng-click="repositoryConfirmRemove()">Remove</button>475 <button class="p-button--negative" data-ng-click="repositoryConfirmRemove()">Remove</button>
474 </div>476 </div>
475 </div>477 </div>
476 </div>478 </div>

Subscribers

People subscribed via source and target branches