Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quasar-web-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Hải Sơn
quasar-web-base
Commits
e9f9bbc1
Commit
e9f9bbc1
authored
May 12, 2021
by
Võ Quang Thành Đạt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e8d80647
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
AddArtist.ts
src/pages/them-nghe-sy/AddArtist.ts
+14
-14
No files found.
src/pages/them-nghe-sy/AddArtist.ts
View file @
e9f9bbc1
...
@@ -579,13 +579,13 @@ export default defineComponent({
...
@@ -579,13 +579,13 @@ export default defineComponent({
);
);
}
}
if
(
!
isMobilePhone
(
phoneNumber
.
value
as
string
))
{
//
if (!isMobilePhone(phoneNumber.value as string)) {
hasError
=
true
;
//
hasError = true;
phoneNumberRules
.
value
=
true
;
//
phoneNumberRules.value = true;
errorMessPhoneNumber
.
value
=
i18n
.
global
.
t
(
//
errorMessPhoneNumber.value = i18n.global.t(
'artist.artistInformation.validateMessages.isPhone'
//
'artist.artistInformation.validateMessages.isPhone'
);
//
);
}
//
}
if
(
!
email
.
value
||
!
email
.
value
?.
trim
().
length
)
{
if
(
!
email
.
value
||
!
email
.
value
?.
trim
().
length
)
{
hasError
=
true
;
hasError
=
true
;
emailRules
.
value
=
true
;
emailRules
.
value
=
true
;
...
@@ -593,13 +593,13 @@ export default defineComponent({
...
@@ -593,13 +593,13 @@ export default defineComponent({
'artist.artistInformation.validateMessages.requireEmail'
'artist.artistInformation.validateMessages.requireEmail'
);
);
}
}
if
(
!
isEmail
(
email
.
value
as
string
))
{
//
if (!isEmail(email.value as string)) {
hasError
=
true
;
//
hasError = true;
emailRules
.
value
=
true
;
//
emailRules.value = true;
errorMessEmail
.
value
=
i18n
.
global
.
t
(
//
errorMessEmail.value = i18n.global.t(
'artist.artistInformation.validateMessages.isEmail'
//
'artist.artistInformation.validateMessages.isEmail'
);
//
);
}
//
}
if
(
artistLevel
.
value
===
null
)
{
if
(
artistLevel
.
value
===
null
)
{
hasError
=
true
;
hasError
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment