Skip to content

Commit 46bb7fb

Browse files
authored
Merge pull request #1073 from yasirmturk/enables-keyboard-enter-login
Enables keyboard enter on login
2 parents d877e25 + 8da1d76 commit 46bb7fb

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

public/js/auth.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/bootstrap.min/667.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/manifest.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/setup.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"/js/update.min.js": "/js/update.min.js?id=bf8500f045bef05fab17d96f91bda0a2",
88
"/js/pos-init.min.js": "/js/pos-init.min.js?id=4622b1c92d80a390a9aff605d6dc8709",
99
"/js/pos.min.js": "/js/pos.min.js?id=e52c784aa131c353e83c0f390a444df6",
10-
"/js/auth.min.js": "/js/auth.min.js?id=c381025f9d70b0604c6d32ffffcd7ae2",
11-
"/js/setup.min.js": "/js/setup.min.js?id=f25aa9ad76ea027ffb57e585329d3039",
10+
"/js/auth.min.js": "/js/auth.min.js?id=ae9a940d39fc7736cff4bff1634d094d",
11+
"/js/setup.min.js": "/js/setup.min.js?id=6803cd6e3a8b6387082494e40a58bf0a",
1212
"/js/popups.min.js": "/js/popups.min.js?id=9a080524639b86512828d04d27f4503f",
13-
"/js/manifest.js": "/js/manifest.js?id=fe412583626384cda3b08c3d9034022f",
13+
"/js/manifest.js": "/js/manifest.js?id=4f605e2141562233dacb084e2dc8d0ff",
1414
"/js/vendor.js": "/js/vendor.js?id=88dd8812d77023d87379c04fcbee1d2d"
1515
}

resources/ts/pages/auth/ns-login.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="ns-box rounded shadow overflow-hidden transition-all duration-100">
33
<div class="ns-box-body">
44
<div class="p-3 -my-2">
5-
<div class="py-2 fade-in-entrance anim-duration-300" v-if="fields.length > 0">
5+
<div class="py-2 fade-in-entrance anim-duration-300" v-if="fields.length > 0" @keyup.enter="signIn()">
66
<ns-field :key="index" v-for="(field, index) of fields" :field="field"></ns-field>
77
</div>
88
</div>
@@ -57,7 +57,7 @@ export default {
5757
* when the component is mounted
5858
*/
5959
setTimeout( () => nsHooks.doAction( 'ns-login-mounted', this ), 100 );
60-
},
60+
},
6161
error: ( error ) => {
6262
nsSnackBar.error( error.message || __( 'An unexpected error occured.' ), __( 'OK' ), { duration: 0 }).subscribe();
6363
}
@@ -66,7 +66,7 @@ export default {
6666
methods: {
6767
__,
6868
signIn() {
69-
const isValid = this.validation.validateFields( this.fields );
69+
const isValid = this.validation.validateFields( this.fields );
7070
7171
if ( ! isValid ) {
7272
return nsSnackBar.error( __( 'Unable to proceed the form is not valid.' ) ).subscribe();
@@ -89,7 +89,7 @@ export default {
8989
}, ( error ) => {
9090
this.isSubitting = false;
9191
this.validation.enableFields( this.fields );
92-
92+
9393
if ( error.data ) {
9494
this.validation.triggerFieldsErrors( this.fields, error.data );
9595
}

0 commit comments

Comments
 (0)