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
1diff --git a/src/maasserver/static/partials/settings.html b/src/maasserver/static/partials/settings.html
2index aef8ea3..1e6f7e3 100644
3--- a/src/maasserver/static/partials/settings.html
4+++ b/src/maasserver/static/partials/settings.html
5@@ -143,6 +143,7 @@
6 <h2 data-ng-click="snippetExitRemove(snippet)" class="u-float--left">Removing {$ snippet.name $}</h2>
7 <button data-ng-click="snippetExitRemove(snippet)" class="p-icon--close u-float--right"></button>
8 </div>
9+ <hr />
10 <div class="row u-no-margin--top u-equal-height">
11 <div class="col-6 u-vertically-center">
12 <p><i class="p-icon--warning">Warning:</i> Are you sure you want to remove this snippet?</p>
13@@ -374,8 +375,8 @@
14 data-ng-click="toggleMenu(); repositoryEnterRemove(repository)">Remove</button>
15 </div>
16 </td>
17- <td class="is-active p-table-expanding__panel col-12" col-span="5" data-ng-if="editRepository === repository">
18- <maas-obj-form obj="editRepository" manager="packageRepositoriesManager" manager-method="updateItem"
19+ <td class="is-active p-table-expanding__panel col-12" col-span="5" data-ng-if="editRepository === repository || deleteRepository === repository">
20+ <maas-obj-form obj="editRepository" manager="packageRepositoriesManager" manager-method="updateItem" data-ng-if="editRepository === repository"
21 table-form="true" save-on-blur="false" after-save="repositoryExitEdit">
22 <div class="row u-equal-height">
23 <div class="col-3 u-vertically-center">
24@@ -460,17 +461,18 @@
25 </div>
26 </maas-obj-form>
27 <div class="table__dropdown" data-ng-if="deleteRepository === repository">
28- <div class="table__dropdown-title">
29+ <div class="row u-hide u-show--small">
30 <h2 data-ng-click="repositoryExitRemove()" class="u-float--left">Removing {$ repository.name $}</h2>
31 <button data-ng-click="repositoryExitRemove()" class="p-icon--close u-float--right"></button>
32 </div>
33- <div class="is-active">
34- <div class=" u-float--left">
35- <p><span class="p-icon--warning"></span> Are you sure you want to remove this repository?</p>
36+ <hr />
37+ <div class="row u-no-margin--top u-equal-height">
38+ <div class="col-6 u-vertically-center">
39+ <p><span class="p-icon--warning"></span> Are you sure you want to remove this repository?</p>
40 </div>
41- <div class=" u-float--right">
42- <button class="button--base" type="button" data-ng-click="repositoryExitRemove()">Cancel</button>
43- <button class="button--destructive" data-ng-click="repositoryConfirmRemove()">Remove</button>
44+ <div class="col-6 u-align--right">
45+ <button class="p-button--base" type="button" data-ng-click="repositoryExitRemove()">Cancel</button>
46+ <button class="p-button--negative" data-ng-click="repositoryConfirmRemove()">Remove</button>
47 </div>
48 </div>
49 </div>

Subscribers

People subscribed via source and target branches