Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Now a user cannot have more than 100#29

Open
InalDJ wants to merge 2 commits into
Web-tree:masterfrom
InalDJ:master
Open

Now a user cannot have more than 100#29
InalDJ wants to merge 2 commits into
Web-tree:masterfrom
InalDJ:master

Conversation

@InalDJ

@InalDJ InalDJ commented Dec 12, 2020

Copy link
Copy Markdown

records in the database

InalDjasheev added 2 commits December 12, 2020 12:52
records in the database
Now a user cannot have more than 100 records in the database;

@Max-Levitskiy Max-Levitskiy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also need to add disable on add button and show message that user can't have more than 100 records.
I think we can add method getDataLimit to the service instead of hardcode it.

return this.httpClient.get<any>(environment.backendUrl + '/data/count').toPromise();
}

add(data: Data): Promise<any> {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be number here but not any :)

styleUrls: ['./add.component.scss']
})
export class AddComponent implements OnInit {
dataCount: string;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Number, not string

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants