+ httpEnabled () {
+ return window.location.protocol === 'https:'
+ }
+
+ addServersToBlock () {
+ this.batchDomainsModal.openModal()
+ }
+
+ onDomainsToBlock (domains: string[]) {
+ domains.forEach(domain => {
+ this.blocklistService.blockServerByInstance(domain)
+ .subscribe(
+ () => {
+ this.notifier.success(this.i18n('Instance {{domain}} muted by your instance.', { domain }))
+
+ this.loadData()
+ }
+ )
+ })
+ }
+