mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
16 lines
370 B
TypeScript
16 lines
370 B
TypeScript
import { Component } from "@angular/core";
|
|
import { SessionStorage } from "../shared/SessionStorage";
|
|
|
|
@Component({
|
|
selector: "my-element",
|
|
templateUrl: "./element.component.html",
|
|
styleUrls: ["./element.component.scss"],
|
|
})
|
|
export class ElementComponent {
|
|
constructor() {}
|
|
|
|
public isAdmin(): boolean {
|
|
return SessionStorage.isAdmin;
|
|
}
|
|
}
|