Skip to content

Commit

Permalink
Compare Save Dialog, simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan committed Sep 8, 2022
1 parent 24bf6d3 commit 4aad05a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
:fix-message-line="true"
@input="validateDisplayName"
/>
<compare-save-dialog
class="edit-compare-save-dialog oc-mb-l"
:original-object="group"
:compare-object="editGroup"
:confirm-button-disabled="invalidFormData"
@revert="revertChanges"
@confirm="$emit('confirm', editGroup)"
></compare-save-dialog>
</div>
<compare-save-dialog
class="edit-compare-save-dialog oc-pb-l oc-pt-s oc-px-m"
:original-object="group"
:compare-object="editGroup"
:confirm-button-disabled="invalidFormData"
@revert="revertChanges"
@confirm="$emit('confirm', editGroup)"
></compare-save-dialog>
</div>
</template>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
</div>
<quota-select
v-if="showQuota"
class="oc-mb-s"
:key="'quota-select-' + user.id"
:title="$gettext('Personal quota')"
:total-quota="editUser.drive.quota.total || 0"
Expand All @@ -49,15 +50,15 @@
To set an individual quota, the user needs to have logged in once.
</p>
</div>
<compare-save-dialog
class="edit-compare-save-dialog oc-mb-l"
:original-object="user"
:compare-object="editUser"
:confirm-button-disabled="invalidFormData"
@revert="revertChanges"
@confirm="$emit('confirm', editUser)"
></compare-save-dialog>
</div>
<compare-save-dialog
class="edit-compare-save-dialog oc-pb-l oc-pt-s oc-px-m"
:original-object="user"
:compare-object="editUser"
:confirm-button-disabled="invalidFormData"
@revert="revertChanges"
@confirm="$emit('confirm', editUser)"
></compare-save-dialog>
</div>
</template>
<script>
Expand Down Expand Up @@ -160,12 +161,7 @@ export default {
<style lang="scss">
#user-edit-panel {
#user-edit-form {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.edit-compare-save-dialog {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-radius: 5px;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<UserInfoBox :user="user" />
<div id="user-group-assignment-form" class="oc-background-highlight oc-p-m">
<oc-select
class="oc-mb-s"
v-model="editUser.memberOf"
multiple
:options="groups"
Expand Down Expand Up @@ -35,14 +36,14 @@
</div>
</template>
</oc-select>
<compare-save-dialog
class="edit-compare-save-dialog oc-mb-l"
:original-object="user"
:compare-object="editUser"
@revert="revertChanges"
@confirm="$emit('confirm', editUser)"
></compare-save-dialog>
</div>
<compare-save-dialog
class="edit-compare-save-dialog oc-pb-l oc-pt-s oc-px-m"
:original-object="user"
:compare-object="editUser"
@revert="revertChanges"
@confirm="$emit('confirm', editUser)"
></compare-save-dialog>
</div>
</template>
<script>
Expand Down Expand Up @@ -90,12 +91,7 @@ export default {
<style lang="scss">
#user-group-assignment-panel {
#user-group-assignment-form {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.edit-compare-save-dialog {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-radius: 5px;
}
}
</style>

0 comments on commit 4aad05a

Please sign in to comment.