MAdded getter and setter methods for username and credentials
This commit is contained in:
parent
e0f400b761
commit
412f9ed431
1 changed files with 14 additions and 2 deletions
|
|
@ -5,8 +5,20 @@ import Statsview from "./Components/Statsview"
|
||||||
import Taskview from "./Components/Taskview"
|
import Taskview from "./Components/Taskview"
|
||||||
|
|
||||||
class App extends React.Component<any,any> {
|
class App extends React.Component<any,any> {
|
||||||
username = ""
|
private _username = "";
|
||||||
credentials = ""
|
public get username() {
|
||||||
|
return this._username;
|
||||||
|
}
|
||||||
|
public set username(value) {
|
||||||
|
this._username = value;
|
||||||
|
}
|
||||||
|
private _credentials = "";
|
||||||
|
public get credentials() {
|
||||||
|
return this._credentials;
|
||||||
|
}
|
||||||
|
public set credentials(value) {
|
||||||
|
this._credentials = value;
|
||||||
|
}
|
||||||
constructor(props: any) {
|
constructor(props: any) {
|
||||||
super(props)
|
super(props)
|
||||||
this.username = this.props.plugin.settings.userID
|
this.username = this.props.plugin.settings.userID
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue