diff --git a/src/app/components/ModalPermalink.jsx b/src/app/components/ModalPermalink.jsx index 96d611e6..514520de 100644 --- a/src/app/components/ModalPermalink.jsx +++ b/src/app/components/ModalPermalink.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import { useState } from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; import ShortenUrl from '../utils/ShortenUrl'; @@ -34,6 +35,18 @@ export default class ModalPermalink extends TranslatedComponent { ); } + /** + * Copy the shortened URL to the clipboard + * @param {Event} e Click event + * @return {void} + */ + copyShortLink() { + let copyText = document.getElementById("shortenedUrl"); + // Copy the text inside the shortendUrl input to the clipboard + copyText.select(); + document.execCommand("copy"); + } + /** * Render the modal * @return {React.Component} Modal Content @@ -42,15 +55,17 @@ export default class ModalPermalink extends TranslatedComponent { let translate = this.context.language.translate; return
s.orbis.zone is the new URL shortener domain, old eddp.co urls are considered end of life and could go down at any moment. Sorry for any inconvenience.
+s.orbis.zone is the URL shortener domain. These links should persist indefinitely going forward. If for some reason there is a problem with the link shortening process, please report it in the EDCD Discord Server.
+{translate('PHRASE_DIFFERENT_ROLLS')}
- + | - + | - + | - + | - +