Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added buttons that can delete assets #267

Merged

Conversation

Zachary-Fernandes
Copy link
Contributor

The UI now includes buttons when accessing all the assets. These
buttons delete the assets they are associated with when they are
clicked.

Resolves #157

@ckadner

Zachary-Fernandes and others added 5 commits November 17, 2021 22:55
I initially created the buttons for each asset.

Prasant helped me with API requests and reloading the page.

Co-authored-by: Zachary-Fernandes <[email protected]>

Co-authored-by: Prasantacharya <[email protected]>
I initially created the buttons for each asset.

Prasant helped me with API requests and reloading the page.

Co-authored-by: Zachary-Fernandes <[email protected]>

Co-authored-by: Prasantacharya <[email protected]>

Signed-off-by: Zachary-Fernandes <[email protected]>
@ckadner
Copy link
Member

ckadner commented Nov 30, 2021

Thank you @Zachary-Fernandes -- could you add a screenshot as well?

@Zachary-Fernandes
Copy link
Contributor Author

Sure thing, I can demonstrate it by deleting Project CodeNet Language Classifier.

Here it is before deleting:
beforedelete

Here it is after deleting:
afterdelete

@ckadner ckadner added the RCOS Potential work items for RCOS student interns label Dec 1, 2021
Copy link
Member

@ckadner ckadner left a comment

Choose a reason for hiding this comment

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

Thanks @Zachary-Fernandes -- just a few nit-picks ;-)

window.location.reload();
}}
>
<span className="delete-button-text">DELETE</span>
Copy link
Member

Choose a reason for hiding this comment

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

I would make it Title-case: Delete, and update the className="delete-button-text" to a color and font that matches the rest of this page

@@ -66,6 +66,7 @@ function MetaAllPage(props: MetaAllPageProps) {
{ id: 'feat', label: 'Featured', numeric: false },
{ id: 'pub', label: 'Published', numeric: false },
{ id: 'cat', label: tagName, numeric: false },
{ id: 'del', label: 'Delete Asset', numeric: false },
Copy link
Member

Choose a reason for hiding this comment

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

just 'Delete' is enough

@ckadner
Copy link
Member

ckadner commented Dec 9, 2021

@Zachary-Fernandes does this screenshot reflect your latest changes?

image

@Zachary-Fernandes
Copy link
Contributor Author

Yes. It originally was red with a minus sign because I could not figure out how to spawn lowercase text, but after making a new style in Models.css, I figured out how to do this.

Copy link
Member

@ckadner ckadner left a comment

Choose a reason for hiding this comment

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

/lgtm

Thank you @Zachary-Fernandes

@mlx-bot
Copy link
Collaborator

mlx-bot commented Dec 9, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ckadner, Zachary-Fernandes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ckadner ckadner merged commit cee26ac into machine-learning-exchange:main Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm RCOS Potential work items for RCOS student interns
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI does not allow deleting assets
3 participants