@@ -21,20 +21,6 @@ useWrappedFetch(() => report.fetchReport(uniqueId));
2121
2222const notify = useNotifications ();
2323
24- async function copyA11yStatementUrl() {
25- const url = ` ${window .location .origin }/declaration/${uniqueId } ` ;
26-
27- navigator .clipboard .writeText (url ).then (() => {
28- showCopyAlert .value = true ;
29-
30- notify (
31- " success" ,
32- undefined ,
33- " Le lien vers la déclaration a bien été copié dans le presse-papier."
34- );
35- });
36- }
37-
3824function getA11yLevel() {
3925 if (report .data ! .accessibilityRate === 100 ) {
4026 return " totalement" ;
@@ -46,7 +32,6 @@ function getA11yLevel() {
4632}
4733
4834const statementContainerRef = ref <HTMLDivElement >();
49- const showCopyAlert = ref (false );
5035
5136async function copyA11yStatementHTML() {
5237 const tagsWithSpacesRegex = / <(?<tagName >\S + )(\s + )>/ g ; // "<XX >"
@@ -114,15 +99,7 @@ const siteUrl = computed(() => {
11499 :title =" `Publier la déclaration d’accessibilité de ${report.data.procedureName}`"
115100 />
116101
117- <div class =" fr-mb-4w heading" >
118- <h1 class =" fr-m-0" >Publier la déclaration d’accessibilité</h1 >
119- <button
120- class =" fr-btn fr-btn--secondary fr-btn--icon-left fr-icon-links-fill"
121- @click =" copyA11yStatementUrl"
122- >
123- Copier le lien de la déclaration
124- </button >
125- </div >
102+ <h1 class =" fr-mb-4w" >Publier la déclaration d’accessibilité</h1 >
126103
127104 <div v-if =" !statementIsPublished" class =" fr-alert fr-alert--info" >
128105 <p class =" fr-alert__title" >Déclaration d’accessibilité indisponible</p >
@@ -394,18 +371,6 @@ const siteUrl = computed(() => {
394371</template >
395372
396373<style scoped>
397- .heading {
398- display : flex ;
399- justify-content : space-between ;
400- align-items : center ;
401- flex-wrap : wrap ;
402- gap : 1rem ;
403- }
404-
405- .info-container {
406- max-width : 49.5rem ;
407- }
408-
409374.content {
410375 max-width : 58rem ;
411376}
0 commit comments