Skip to content

Commit

Permalink
fix: integrate button width on app details page
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobernardoaf committed Nov 14, 2023
1 parent 83e861f commit cb4d148
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/components/IntegrateButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<LoadingButton
ref="button"
type="secondary"
loadingPosition="center"
:loadingPosition="loadingPosition"
:size="size"
:iconCenter="icon"
:iconCenter="loadingPosition == 'center' ? icon : null"
:iconLeft="loadingPosition == 'left' ? icon : null"
:isLoading="loadingCreateApp"
:disabled="disabled"
:text="text"
Expand Down Expand Up @@ -49,6 +50,13 @@
type: String,
default: 'small',
},
loadingPosition: {
type: String,
default: 'center',
validator(value) {
return ['left', 'center'].indexOf(value) !== -1;
},
},
},
data() {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoadingButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
props: {
type: {
type: String,
default: 'terciary',
default: 'tertiary',
},
size: {
type: String,
Expand Down
1 change: 1 addition & 0 deletions src/components/app/AppDetailsHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
:app="app"
:disabled="!app.can_add"
:text="$t('apps.details.header.add')"
loadingPosition="left"
/>

<add-modal ref="addModal" />
Expand Down

0 comments on commit cb4d148

Please sign in to comment.