syncthing/src/app/lists/status-list/status-list.component.ts

25 lines
569 B
TypeScript
Raw Normal View History

import { Component, OnInit } from '@angular/core';
2020-03-19 23:05:04 +01:00
import { ListType } from '../../list-type';
import { cardElevation } from '../../style';
2020-03-12 02:22:43 +01:00
2020-03-11 03:51:50 +01:00
@Component({
selector: 'app-status-list',
templateUrl: './status-list.component.html',
styleUrls: ['./status-list.component.scss']
})
export class StatusListComponent implements OnInit {
2020-03-19 23:05:04 +01:00
currentListType: ListType = ListType.Folders;
listType = ListType; // used in html
elevation: string = cardElevation;
2020-03-11 03:51:50 +01:00
constructor() { }
2020-03-11 03:51:50 +01:00
ngOnInit(): void {
2020-03-11 03:51:50 +01:00
}
2020-03-19 23:05:04 +01:00
onToggle(t: ListType) {
this.currentListType = t;
2020-03-12 02:22:43 +01:00
}
2020-03-11 03:51:50 +01:00
}