Skip to content

Commit

Permalink
feat: add datetime at the end of VIEW url
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedHamouGisaia committed Jan 6, 2025
1 parent aca612c commit 6f70890
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@
* under the License.
*/

import { Component, Input, OnInit, Output } from '@angular/core';
import { Component, Input, Output } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { Resource } from 'arlas-permissions-api';
import { catchError, filter, map, take, tap } from 'rxjs/operators';
import { PermissionService } from '../../../services/permission/permission.service';
import { catchError, filter, map, take } from 'rxjs/operators';
import { PersistenceService } from '../../../services/persistence/persistence.service';
import { Subject, from, of } from 'rxjs';
import { ConfigAction, ConfigActionEnum } from '../../../tools/utils';
import { ActionModalComponent } from '../action-modal/action-modal.component';
import { ArlasConfigService, ArlasExploreApi } from '../../../services/startup/startup.service';
import { ArlasConfigService } from '../../../services/startup/startup.service';
import { DataWithLinks } from 'arlas-persistence-api';
import { AuthorisationOnActionError } from '../../../tools/errors/authorisation-on-action-error';
import { ErrorService } from '../../../services/error/error.service';
Expand All @@ -42,7 +40,7 @@ import { AuthentificationService } from '../../../services/authentification/auth
templateUrl: './config-menu.component.html',
styleUrls: ['./config-menu.component.css']
})
export class ConfigMenuComponent implements OnInit {
export class ConfigMenuComponent {
@Input() public actions: Array<ConfigAction>;

@Input() public zone: string;
Expand All @@ -62,9 +60,6 @@ export class ConfigMenuComponent implements OnInit {
private authenService: AuthentificationService
) {

}
public ngOnInit() {

}

public onActionClick(action: ConfigAction): void {
Expand All @@ -78,6 +73,7 @@ export class ConfigMenuComponent implements OnInit {
if (!!action.config.org && action.config.org !== NO_ORGANISATION) {
url = url.concat('&org=' + action.config.org);
}
url = url.concat('&dt=' + Date.now());
this.openUrl(url);
}
this.actionExecutedEmitter.next(action);
Expand Down

0 comments on commit 6f70890

Please sign in to comment.