fix: Issues #208 done.
This commit is contained in:
@@ -3,7 +3,7 @@ import AllMapDataStore from '@/stores/allMapData.js';
|
|||||||
import LoginStore from '@/stores/login.js';
|
import LoginStore from '@/stores/login.js';
|
||||||
|
|
||||||
const customClass = {
|
const customClass = {
|
||||||
htmlContainer: '!w-[564px]',
|
popup: '!w-[564px]',
|
||||||
title: '!text-xl !font-semibold !mb-2',
|
title: '!text-xl !font-semibold !mb-2',
|
||||||
htmlContainer: '!text-sm !font-normal !h-full !mb-4 !leading-5',
|
htmlContainer: '!text-sm !font-normal !h-full !mb-4 !leading-5',
|
||||||
inputLabel: '!text-sm !font-normal',
|
inputLabel: '!text-sm !font-normal',
|
||||||
@@ -58,15 +58,15 @@ export async function savedSuccessfully(value) {
|
|||||||
export async function leaveFilter(next, addFilterId, toPath) {
|
export async function leaveFilter(next, addFilterId, toPath) {
|
||||||
const allMapDataStore = AllMapDataStore();
|
const allMapDataStore = AllMapDataStore();
|
||||||
const result = await Swal.fire({
|
const result = await Swal.fire({
|
||||||
title: 'ARE YOU SURE TO LEAVE MAP?',
|
title: 'SAVE YOUR FILTER?',
|
||||||
html: 'Filter settings have not been saved.</br>Click “Save as” to save filtered results, “OK” to leave map.',
|
html: 'If you want to continue using this filter in any other page, please select [Yes].',
|
||||||
icon: 'warning',
|
icon: 'warning',
|
||||||
iconColor: '#FF3366',
|
iconColor: '#FF3366',
|
||||||
reverseButtons:true,
|
reverseButtons:true,
|
||||||
confirmButtonText: 'Save as',
|
confirmButtonText: 'Yes',
|
||||||
confirmButtonColor: '#FF3366',
|
confirmButtonColor: '#FF3366',
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
cancelButtonText: 'OK',
|
cancelButtonText: 'No',
|
||||||
cancelButtonColor: '#94a3b8',
|
cancelButtonColor: '#94a3b8',
|
||||||
customClass: customClass
|
customClass: customClass
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user