Skip to content

Replace `data-remote` and `data-method` (parts of Rails UJS) for an axios call in app/assets/javascripts/access_tokens/components/access_token_table_app.vue

As mentioned in !169954 (comment 2199597906), we shouldn't rely on Rails UJS. Therefore, we should remove data-remote and data-method from https://gitlab.com/gitlab-org/gitlab/-/blob/32da0a94912889407def22c70165b2577d144340/app/assets/javascripts/access_tokens/components/access_token_table_app.vue#L255-256 and replace it for an axios request.

In that way, we can revert back the dom-listener to the original element:

Edited by Eduardo Sanz García