Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-07-14 12:05:17 +0300
committerJoas Schilling <coding@schilljs.com>2020-07-14 16:30:59 +0300
commit2607d2df1aba841e6513a99cfea2ce4eee7b2699 (patch)
tree2be9dff34030c18d76af1b2eef29648324ab9b14 /core
parented3e03821bab0de471f659c399777217531a4323 (diff)
Use generateUrl and imagePath instead of OC.*
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core')
-rw-r--r--core/src/components/login/LoginForm.vue19
1 files changed, 16 insertions, 3 deletions
diff --git a/core/src/components/login/LoginForm.vue b/core/src/components/login/LoginForm.vue
index 113fe821913..5adf5be0eae 100644
--- a/core/src/components/login/LoginForm.vue
+++ b/core/src/components/login/LoginForm.vue
@@ -23,7 +23,7 @@
<form ref="loginForm"
method="post"
name="login"
- :action="OC.generateUrl('login')"
+ :action="loginActionUrl"
@submit="submit">
<fieldset>
<div v-if="apacheAuthFailed"
@@ -47,7 +47,7 @@
class="hidden">
<img class="float-spinner"
alt=""
- :src="OC.imagePath('core', 'loading-dark.gif')">
+ :src="loadingIcon">
<span id="messageText" />
<!-- the following div ensures that the spinner is always inside the #message div -->
<div style="clear: both;" />
@@ -82,7 +82,7 @@
<label for="password"
class="infield">{{ t('Password') }}</label>
<a href="#" class="toggle-password" @click.stop.prevent="togglePassword">
- <img :src="OC.imagePath('core', 'actions/toggle.svg')">
+ <img :src="toggleIcon">
</a>
</p>
@@ -126,6 +126,10 @@
<script>
import jstz from 'jstimezonedetect'
import LoginButton from './LoginButton'
+import {
+ generateUrl,
+ imagePath,
+} from '@nextcloud/router'
export default {
name: 'LoginForm',
@@ -185,6 +189,15 @@ export default {
userDisabled() {
return this.errors.indexOf('userdisabled') !== -1
},
+ toggleIcon() {
+ return imagePath('core', 'actions/toggle.svg')
+ },
+ loadingIcon() {
+ return imagePath('core', 'loading-dark.gif')
+ },
+ loginActionUrl() {
+ return generateUrl('login')
+ },
},
mounted() {
if (this.username === '') {