getLinkGroups (all = false) {
    store.commit('SET_LINK_GROUPS_ERROR', '');

    const query = {};
    if (store.state.seeAllLinkGroups) { query.all = true; }

    return new Promise((resolve, reject) => {
      fetch(`api/linkGroup/${paramStr(query)}`).then((response) => {
        if (!response.ok) { // test for bad response code
          throw new Error(response.statusText);
        }
        return response.json();
      }).then((response) => {
        store.commit('SET_LINK_GROUPS', response.linkGroups);
        return resolve(response.linkGroups);
      }).catch((err) => { // this catches an issue within the ^ .then
        store.commit('SET_LINK_GROUPS_ERROR', err);
        return reject(err);
      });
    });
  }
Fetches the list of link groups that a user can view.
@param {boolean} all - if true, request all link groups (admin only)
@param {boolean} doSet - whether to store these link groups as those to be applied during use
@returns {Promise} - The promise that either resovles the or rejects in error