Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Use a form (not ajax) for invalidating codes #390

Merged
merged 8 commits into from
Aug 27, 2020

Conversation

whaught
Copy link
Contributor

@whaught whaught commented Aug 27, 2020

Proposed Changes

Screenshot from 2020-08-26 17-50-16

Release Note

Allow users to expire a code

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: whaught

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

@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Aug 27, 2020
@whaught whaught changed the title Use a form (not ajax) for invalidating codes [WIP] Use a form (not ajax) for invalidating codes Aug 27, 2020
@@ -42,24 +42,32 @@ <h5 class="mb-1">Status</h5>
<h5 class="mb-1">Expiry</h5>
<span id="code-expires-at" class="sm text-danger"></span>
</div>
<div class="card-body">
<form action="/code/expire" method="POST">
Copy link
Member

Choose a reason for hiding this comment

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

I wrote some magical javascript that makes this a bit easier. Check out users/index.html for the delete action.

pkg/controller/codestatus/show.go Outdated Show resolved Hide resolved
pkg/controller/codestatus/expire.go Outdated Show resolved Hide resolved
pkg/controller/codestatus/expire.go Outdated Show resolved Hide resolved
@whaught whaught changed the title [WIP] Use a form (not ajax) for invalidating codes Use a form (not ajax) for invalidating codes Aug 27, 2020
@mikehelmick
Copy link
Contributor

/lgtm

@google-oss-robot google-oss-robot merged commit 3cb8bbc into google:main Aug 27, 2020
@google google locked and limited conversation to collaborators Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants