chore: change cadastrefr buttons (#2333)

We remove the cancel button and change the accept label.
This commit is contained in:
Yohan Boniface 2024-12-03 17:56:57 +01:00 committed by GitHub
commit c9d532508d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,7 @@ import { DomUtil } from '../../../vendors/leaflet/leaflet-src.esm.js'
import { BaseAjax, SingleMixin } from '../autocomplete.js'
import * as Util from '../utils.js'
import { AutocompleteCommunes } from './communesfr.js'
import { translate } from '../i18n.js'
const TEMPLATE = `
<h3>Cadastre</h3>
@ -56,6 +57,8 @@ export class Importer {
.open({
template: container,
className: `${this.id} importer dark`,
cancel: false,
accept: translate('Choose this data'),
})
.then(confirm)
}