Skip to content

Commit

Permalink
Fix reset auth client valid date
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Jul 20, 2023
1 parent 3ed432e commit bd0a941
Showing 1 changed file with 8 additions and 36 deletions.
Expand Up @@ -93,7 +93,7 @@
label-cols="3"
class="mb-3"
>
<b-input-group>
<div class="d-flex">
<b-form-input
v-model="secret"
data-test-id="input-client-secret"
Expand All @@ -104,8 +104,8 @@
<b-button
v-if="!secretVisible"
data-test-id="button-show-client-secret"
class="ml-1 text-primary"
variant="link"
class="text-primary border-0 px-3"
variant="outline-light"
@click="$emit('request-secret')"
>
<font-awesome-icon
Expand All @@ -116,16 +116,16 @@
<b-button
v-else
data-test-id="button-regenerate-client-secret"
class="ml-1 text-primary"
variant="link"
class="text-primary border-0 px-3"
variant="outline-light"
:title="$t('tooltip.regenerate-secret')"
@click="$emit('regenerate-secret')"
>
<font-awesome-icon
:icon="['fas', 'sync']"
/>
</b-button>
</b-input-group>
</div>
</b-form-group>

<b-form-group
Expand Down Expand Up @@ -155,19 +155,7 @@
now: $t('general:label.now'),
today: $t('general:label.today'),
}"
>
<b-button
data-test-id="button-reset-value"
class="text-primary border-0"
variant="outline-light"
:title="$t('tooltip.reset-value')"
@click="resetDateTime('validFromDate')"
>
<font-awesome-icon
:icon="['fas', 'sync']"
/>
</b-button>
</c-input-date-time>
/>
</b-form-group>

<b-form-group
Expand All @@ -184,19 +172,7 @@
now: $t('general:label.now'),
today: $t('general:label.today'),
}"
>
<b-button
data-test-id="button-reset-value"
class="text-primary border-0"
variant="outline-light"
:title="$t('tooltip.reset-value')"
@click="resetDateTime('expiresAtDate')"
>
<font-awesome-icon
:icon="['fas', 'sync']"
/>
</b-button>
</c-input-date-time>
/>
</b-form-group>

<b-form-group
Expand Down Expand Up @@ -669,10 +645,6 @@ export default {
this.resource.scope = items.join(' ')
},
resetDateTime (date) {
this[date] = undefined
},
},
}
</script>
Expand Down

0 comments on commit bd0a941

Please sign in to comment.