fix: Issues #208 done.

This commit is contained in:
chiayin
2023-11-23 13:43:15 +08:00
parent ec596ef3ed
commit f1666a0bd1

View File

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