adminforth 2.4.0-next.188 → 2.4.0-next.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
v-for="c in coreStore?.config?.loginPageInjections?.underInputs || []"
|
|
91
91
|
:is="getCustomComponent(c)"
|
|
92
92
|
:meta="c.meta"
|
|
93
|
+
@update:disableLoginButton="setDisableLoginButton($event)"
|
|
93
94
|
/>
|
|
94
95
|
|
|
95
96
|
<ErrorMessage :error="error" />
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
<span class="sr-only">{{ $t('Info') }}</span>
|
|
104
105
|
<div v-html="loginPromptHTML"></div>
|
|
105
106
|
</div>
|
|
106
|
-
<Button @click="login" :loader="inProgress" :disabled="inProgress" class="w-full">
|
|
107
|
+
<Button @click="login" :loader="inProgress" :disabled="inProgress || disableLoginButton" class="w-full">
|
|
107
108
|
{{ $t('Login to your account') }}
|
|
108
109
|
</Button>
|
|
109
110
|
</form>
|
|
@@ -117,7 +118,7 @@
|
|
|
117
118
|
</template>
|
|
118
119
|
|
|
119
120
|
|
|
120
|
-
<script setup>
|
|
121
|
+
<script setup lang="ts">
|
|
121
122
|
|
|
122
123
|
import { getCustomComponent } from '@/utils';
|
|
123
124
|
import { onBeforeMount, onMounted, ref, computed } from 'vue';
|
|
@@ -148,6 +149,7 @@ const user = useUserStore();
|
|
|
148
149
|
const showPw = ref(false);
|
|
149
150
|
|
|
150
151
|
const error = ref(null);
|
|
152
|
+
const disableLoginButton = ref(false);
|
|
151
153
|
|
|
152
154
|
const backgroundPosition = computed(() => {
|
|
153
155
|
return coreStore.config?.loginBackgroundPosition || '1/2';
|
|
@@ -211,5 +213,8 @@ async function login() {
|
|
|
211
213
|
|
|
212
214
|
}
|
|
213
215
|
|
|
216
|
+
function setDisableLoginButton(value: boolean) {
|
|
217
|
+
disableLoginButton.value = value;
|
|
218
|
+
}
|
|
214
219
|
|
|
215
220
|
</script>
|