Skip to content

Commit

Permalink
add reverse button
Browse files Browse the repository at this point in the history
  • Loading branch information
rizkyilhampra committed Jul 5, 2023
1 parent 803863e commit 23dc6f7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions public/spesified-assets/user/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ const swalError = async (error) => {
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Muat Ulang',
cancelButtonText: 'Tutup'
cancelButtonText: 'Tutup',
reverseButtons: true
}).fire();
if (result.isConfirmed) {
window.location.reload();
Expand Down Expand Up @@ -327,7 +328,8 @@ document.addEventListener('DOMContentLoaded', async () => {
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Login',
cancelButtonText: 'Batal'
cancelButtonText: 'Batal',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
window.location.href = "/login";
Expand All @@ -342,7 +344,8 @@ document.addEventListener('DOMContentLoaded', async () => {
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Lengkapi Profil',
cancelButtonText: 'Batal'
cancelButtonText: 'Batal',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
modalEditProfileInstance.show();
Expand Down

0 comments on commit 23dc6f7

Please sign in to comment.