From 10aab0cdab53d7d3389d04b2c3712b223bbc0971 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Mon, 25 Mar 2019 10:50:18 +0100 Subject: [PATCH] Use name from theme when downloading/printing twofactor backup codes. Signed-off-by: Joachim Bauch Signed-off-by: Christoph Wurst --- apps/twofactor_backupcodes/js/settings.js | Bin 131171 -> 131339 bytes apps/twofactor_backupcodes/js/settings.js.map | Bin 651804 -> 652292 bytes .../src/service/PrintService.js | 5 +++-- .../src/views/PersonalSettings.vue | 9 ++++++++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/apps/twofactor_backupcodes/js/settings.js b/apps/twofactor_backupcodes/js/settings.js index 53da7e9f46b4c69fcbc92db649675ecaa678bf15..4ea6f131e3c7027c06e809ac0a22f3219c8ee2e1 100644 GIT binary patch delta 1200 zcmaJ=YiJx*6y~fOn?6Wl(*%?HNH)o2COesJOt)!fGhMH>@lmta5{slsklEeIqusr` z&dz2lJE4-Qe@dufG$Tc&Afi~Y!u}XghzUh0wd9A|AWd6Xd||D|A0agqjAtTM5bB?M z&-u=G&pqdS_kQ4}Nbk9`#tR0#|`!uONbLxVzKSR@u)sjWT$<>pg>l#{|iTz?QA zMX06a*^RhOw1-^6%+7^s++N@RjmtaSW8(T#PpgM&R{760Rv;1*iN+iK`k<)!eb4#) zy2yl(mdI#zE-q^5jt^y7%ot6vI#QU9WVT|yP3n!BGAv3H>vss_ydlV>;LTt0Vjsn0 zXFS-!f9j0OXsTGXvych z-1@ubU)ivUrj-30SKo)zx_Bvy!N9`XZld{b--j(E6;}7`;5eQs#G1H#;2x5ads8yY zCK5uJDGH+BU*3o8mc@;#!Du9F@|lt}!Dd98q|x+;#;imSTo>)Ci5K zdL6N@Uu}Gtm}bs2eLl>X6Y?(Js}PQhhvRZqe8x4$!eeqm+~=C2xK8dnf+g2EMdwiwC z)$r4s3?86LTZncwN<%CoB{Vi{jD)D)FRTOo)Ou_+hs@7btE+)J3+1r35vaXT0}&uj zQ!UJ*>-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DnlI+C1U?ofvamh z?dzkRk&d)teQm8tEP=~OWpkypZ%|3? zE#-YF+-Q-rzM6t)^Zx`%fa?m6v~T2ys9C`a;IGj_`9en11tjeL3vkxGj(c!7_)p^C zQsR)lU+1iommy$py$t&v`mfBXD=^t))!xBDoScDC>%|%Dci;}Z?W(2XsFJ5kzf4hL U)*rLLa2MTk5Jkz@9K7TG8$2syF#rGn diff --git a/apps/twofactor_backupcodes/js/settings.js.map b/apps/twofactor_backupcodes/js/settings.js.map index 6d2ab6c2f379c4288d69a0feda41ef6c7bca28a8..cbdabc71d05a0af105899e8e9f84ae70aa29a470 100644 GIT binary patch delta 12907 zcma)DdvKi9bsya|Mr(*=3btjeShD;O_O7kn)vk6ICxN@)uGX?FttI&(5tyKtceUF0 zOS@|5CTVAqX4)p1487^}k+y%N$xJ&*LucGhrwwfa3?)EF3YiixA%TPtLLd(U)N_>&i$ z#~d@E!TbKs@!5?Vyn*lnp1Oe_w6(!y7y2^UJwRerA4XF|&}H z$u9J|dn>7h?7|?Dl^0GI2N+Q?okZsMwCbQ zjI^Y?7y;B0mc}&-mJ;|YkdL}YFb-m*`M@OOc+}_rOKfX~*MI7t1Z+%NjEU_Ht^W0) z2Z>}%j%j9E&@1ahS2gYaI{0c{!fL1xU01w08JEdZS}qH`lwFoP&x%<9zU7YLHx1ko zJX^xZx~XWfS$9cH2oW#!Pti)hJjO~Hbx#r})A-5Qh_sSF28Jx@PaAyoz<&$( zUjHyOP8-kRHwBFoZTI33K|(6tNp1bI2y8Bc8vAQ3>5y>7nJQ@_a?~?qBCQ_??6_RywYkl!=N; z0=AiD8DzqOovag@nc!js8nfc-#@Bqr2 z(Sj}F5~SeiEByphifA)RclIFpgAa~D7!tqmbj-kuSzU}u;D@oN@;xAe&V0iHDN6=a z=>ZXN(k5i;y86Nc;v;?4q~(V6maJ*9WECU!jmx79rgx~R_dO_fCYSN7O2BmkObett znaM`U!qSzYaYTlhK`EEO{tVUw7_n=-iV@5lt+7}zE02gecuFxc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FjCMli=^b2=S|b<`C7f1tuxc4)MZ zNd>G>GRWge=t@Atax&=jI=Uuiy`UN!EYD#Q5oxbsT`@BZ+w$!vKhtl>($Vf;xg${c2{TbyGVJ!sy;J z2*MD;$zJi&i>VxDg;L%l_>0E}4G$4KnWiZO32lqCL=lpfD4y$CKY9d|7=p7*ej4$J zJPzlMZPpx7-9?9J_=@V;WW_9qTy5N7ZS8TCk~T68tB-B6wyiH3KD}Xe|0b(%f88uM z@FWk?F<}s4m_l{gP+d|lY_j%6LkNC!;xdFihi4L9L>gy|F!i>0XIsJOIdqrZW8rTN z{;tB`TKug$Yxi{TKhgQ7{WA}C_n!S!vitpA-9yp2GZEjM@9gJN-LH*a3h|`}x`(?~ zPJN{_Q2+B_ccwEsd+AFzPS4F}Yo!D8#f8PC z4^$gf_3EH&;A}hM`qwpQzj)AfpzG{`TU@`nN*%UcAy;RcdhA24&FTxb>)_VT+%Ao3 z7o*y*x`$og=un`Z8g`w(IQnwj^@q;r?876jhc@hdC!%g2P!Ak+1r*47zbc(@tvUPj Jao3Ii@_+W@txf;{ diff --git a/apps/twofactor_backupcodes/src/service/PrintService.js b/apps/twofactor_backupcodes/src/service/PrintService.js index 6ea8d4732c..7f4a0f46c5 100644 --- a/apps/twofactor_backupcodes/src/service/PrintService.js +++ b/apps/twofactor_backupcodes/src/service/PrintService.js @@ -1,6 +1,7 @@ export function print (data) { - const newTab = window.open('', t('twofactor_backupcodes', 'Nextcloud backup codes')); - newTab.document.write('

' + t('twofactor_backupcodes', 'Nextcloud backup codes') + '

'); + const name = OC.theme.name || 'Nextcloud'; + const newTab = window.open('', t('twofactor_backupcodes', '{name} backup codes', {name: name})); + newTab.document.write('

' + t('twofactor_backupcodes', '{name} backup codes', {name: name}) + '

'); newTab.document.write('
' + data + '
'); newTab.print(); newTab.close(); diff --git a/apps/twofactor_backupcodes/src/views/PersonalSettings.vue b/apps/twofactor_backupcodes/src/views/PersonalSettings.vue index 2ca389461c..15e20395e1 100644 --- a/apps/twofactor_backupcodes/src/views/PersonalSettings.vue +++ b/apps/twofactor_backupcodes/src/views/PersonalSettings.vue @@ -15,7 +15,7 @@ {{ t('twofactor_backupcodes', 'Save backup codes') }} + :download="downloadFilename">{{ t('twofactor_backupcodes', 'Save backup codes') }} @@ -52,6 +52,10 @@ return prev + code + '\r\n'; }, '')); }, + downloadFilename: function() { + const name = OC.theme.name || 'Nextcloud'; + return name + '-backup-codes.txt'; + }, enabled: function() { return this.$store.state.enabled }, @@ -63,6 +67,9 @@ }, codes: function() { return this.$store.state.codes + }, + name: function() { + return OC.theme.name || 'Nextcloud' } }, methods: {