This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/static/js/directives/ui/repo-state/repo-state.component.ts

22 lines
573 B
TypeScript
Raw Normal View History

2019-11-21 20:32:08 +00:00
import { Component, Input, Output, EventEmitter } from 'ng-metadata/core';
import * as template from './repo-state.component.html';
import * as styleUrl from './repo-state.component.css';
type RepoStateOption = {
value: string;
title: string;
description: string;
};
@Component({
selector: 'repo-state',
templateUrl: template,
styleUrls: [styleUrl],
})
export class RepoStateComponent {
@Input('<') public options: RepoStateOption[];
@Input('<') public selectedState: RepoStateOption;
@Output() public onChange = new EventEmitter<RepoStateOption>();
}